package org.xiaojun.loginDemo.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * @author xj
 * @create 2021/8/7 11:11
 */
@Configuration
public class MvcConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("main").setViewName("main");
        registry.addViewController("index").setViewName("index");
        registry.addViewController("employee/addEmp").setViewName("addEmp");
    }
}
